import { defineStore } from 'pinia'

export const commonStore = defineStore('common', {
  state: () => ({
    readed: true,
    globalPlatId: ''
  }),
  actions: {
    initNoticeBadge(readed) {
      this.readed = readed
    },
    changePlat(globalPlatId) {
      this.globalPlatId = globalPlatId
    }
  }
})
